<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改员工</title>
    <link rel="stylesheet" th:href="@{/static/css/index_work.css}">
</head>
<body>
<center>
    <form th:action="@{/employee}" method="post">
        <input type="hidden" name="_method" value="put">
        <input type="hidden" name="id" th:value="${employee.id}"/>
        <table border="1">
            <tr>
                <th colspan="2">update employee</th>
            </tr>
            <tr>
                <td>lastName</td>
                <td><input type="text" name="lastName" th:value="${employee.lastName}"/></td>
            </tr>
            <td>email</td>
            <td><input type="text" name="email" th:value="${employee.email}"/></td>
            </tr>
            <td>gender</td>
            <td>
                <input type="radio" name="gender" value="1" th:field="${employee.gender}"/>male
                <input type="radio" name="gender" value="0" th:field="${employee.gender}"/>femal
            </td>
            </tr>
            <tr>
                <td colspan="2" align="center"><input type="submit" value="修改"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>